package com.example.familytreebe.dto;

import com.example.familytreebe.entity.Person;
import java.util.List;

public class FamilyNodeDTO {
    private Person person;
    private List<FamilyNodeDTO> children;

    // 构造器
    public FamilyNodeDTO(Person person) {
        this.person = person;
    }

    // getters & setters
    public Person getPerson() { return person; }
    public List<FamilyNodeDTO> getChildren() { return children; }
    public void setChildren(List<FamilyNodeDTO> children) { this.children = children; }
}